package com.easyad.pub;

import javax.persistence.Entity;
import javax.servlet.http.HttpServletRequest;

@Entity
public class checkParmNotNull {

	public static boolean notNULL(HttpServletRequest request, String ...parm) {
		
		for(int i=0;i<parm.length;i++){

			if(request.getParameter(parm[i]) == null)
				return false;
			if(request.getParameter(parm[i]).toString().equals("")) return false;
		}
		return true;
	}
}
